//
//  LCMineService.h
//  lechuang
//
//  Created by Mr_hi on 2023/3/25.
//  Copyright © 2023 Mooyi. All rights reserved.
//

#import <Foundation/Foundation.h>

@class LCUserModel, LCRankingModel, LCFirendModel, LCAmountListModel;

@interface LCMineService : NSObject

//获取用户信息
+ (void)getUserInfoWithShowError:(BOOL)showIt Block:(void(^)(BOOL isSuccess, LCUserModel * userInfo))block;

//修改登陆密码
+ (void)changePswdWithOldPswd:(NSString *)oldPswd Pswd:(NSString *)pswd SurePswd:(NSString *)surePswd Block:(void(^)(BOOL isSuccess))block;

//修改用户头像
+ (void)changeThumbWithImg:(UIImage *)image Block:(void(^)(BOOL isSuccess))block;

//修改用户昵称
+ (void)changeNickName:(NSString *)nickName Block:(void(^)(BOOL isSuccess))block;

//账户明细
+ (void)amountAllListWithPage:(NSInteger)page Block:(void(^)(BOOL isSuccess, NSArray <LCAmountListModel *>* list, NSInteger total))block;

//账户任务明细
+ (void)amountTaskListWithPage:(NSInteger)page Block:(void(^)(BOOL isSuccess, NSArray <LCAmountListModel *>* list, NSInteger total))block;

//账户提现明细
+ (void)amountTixianListWithPage:(NSInteger)page Block:(void(^)(BOOL isSuccess, NSArray <LCAmountListModel *>* list, NSInteger total))block;


//获取我的邀请记录
+ (void)friendListWithPage:(NSInteger)page Block:(void(^)(BOOL isSuccess, NSArray <LCFirendModel *>* list, NSInteger total))block;

//提现
+ (void)withdrawalWithModel:(NSString *)model CashAmount:(NSString *)amount Block:(void(^)(BOOL isSuccess))block;

//绑定支付宝信息
+ (void)bingAlipayInfoWithChar:(NSString *)aliChar Name:(NSString *)name Block:(void(^)(BOOL isSuccess))block;

// 获取排行榜信息
+ (void)rankingListWithPage:(NSInteger)page Block:(void(^)(BOOL isSuccess, NSArray <LCRankingModel *>* list, NSInteger total))block;

//提交用户反馈
+ (void)userGuestWithContext:(NSString *)context Block:(void(^)(BOOL isSuccess))block;

//获取邀请统计
+ (void)friendNumberWithBlock:(void(^)(BOOL isSuccess, NSInteger todayNum, NSInteger totalNum, NSInteger todayAmount))block;

//检测版本
+ (void)checkVersionWirhBlock:(void(^)(BOOL isSuccess, BOOL hasNewV))block;

+ (void)getContactInfoBlock:(void(^)(BOOL isSuccess, NSString * tel, NSString *email, NSString *wxchar, NSString *qqchar))block;


@end

